package org.testis.webautomationmodule.ui.objects;

import org.testis.webautomationmodule.ui.UIFormFieldDecorator;


public class UITextArea extends UIFormFieldDecorator
{

    public UITextArea(String id)
    {
        super(id);
    }


    public UITextArea(String id,
                      String value)
    {
        super(id,
              value);

    }


    @Override
    protected boolean setBehavior()
    {
        if (checkAvailableForAction()) {
            getWebAutomationImpl().type(getId(),
                                        getValue());
            putLog(" typing " + getValue() + " to the text area with id " +
                   getId());
            return true;
        }
        return true;
    }
}

